<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style>
		body,div,table {
			font-family: inherit;
			font-size: 12px;
			margin-top: 5px;
		}
	</style>
  </head>
  <body> 
<br/>
<hr  color="#999999" size="2px"/>
 <form action="saveUser.action" method="post">  
 <fieldset>
<legend >会员注册</legend>
<table width="470" border="0" align="center">
  <tr>
    <td width="100"><div align="right">用户名</div></td>
    <td width="20">&nbsp;</td>
    <td width="200" height="30"><input type="text" name="users.username" /></td>
    <td width="20">&nbsp;</td>
    <td >&nbsp;</td>
  </tr>
  <tr>
    <td><div align="right">密码</div></td>
    <td>&nbsp;</td>
    <td height="30"><input type="password" name="users.password" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="right">重复密码</div></td>
    <td>&nbsp;</td>
    <td height="30"><input type="password" name="password2" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  
  <tr>
    <td><div align="right">真实姓名</div></td>
    <td>&nbsp;</td>
    <td height="30"><input type="text" name="textfield4" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>  
  <tr>
    <td><div align="right">手机号码</div></td>
    <td>&nbsp;</td>
    <td height="30"><input type="text" name="users.telephone" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="right">邮箱</div></td>
    <td>&nbsp;</td>
    <td height="30"><input type="text" name="users.email" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="right">验证码</div></td>
    <td>&nbsp;</td>
    <td height="30">
    	<input type="text" name="validationCode" size="5"/>
    	<img id="random" src="validationCode.action" />
         <a href="#" onclick="javascript:document.getElementById('random').src='validationCode.action'">换一张</a>
    </td>
    <td>
    	<%if(request.getAttribute("errorInfo") != null && !request.getAttribute("errorInfo").equals("")){%>
			提示：${errorInfo}
		<%}%>
	</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="right"></div></td>
    <td>&nbsp;</td>
    <td height="30">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="5">
    	<div align="center">
        	<label>
          		<input type="checkbox" name="checkbox" value="checkbox" checked="checked"/>
          	</label>
      		我已阅读并接受<a href="#">《服务条款》</a>
     	 </div>
     </td>
  </tr>
  <tr>
    <td colspan="5">
      <div align="center">
        <input type="submit" name="Submit" value=" 注 册 " />
      </div></td>
  </tr>
</table>
</fieldset> 
 </form>
</body>
</html>
